<?php

namespace app\model;

use app\BaseModel;
use think\model\relation\BelongsTo;

/**
 * 干预-上报记录
 */
class InterfereReportModel extends BaseModel
{
    protected $name = 'interfere_report';

    /**
     * 用户
     * @return BelongsTo
     */
    public function user(): BelongsTo
    {
        return $this->belongsTo(UserModel::class,'uid')->bind([
            'user_name' => 'name'
        ]);
    }
}